# @Time    :2025/3/30 21:50
#添加普通方法

class Person:
    def __init__(self,name=None):
        self.name=name

def eat():
    print("吃饭")

p1= Person("jj")
p1.eat=eat
p1.eat()#吃饭